<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">修改登录密码</div>
                </div>
                <div class="widget-body am-fr">
                    <form action="" method="POST" id="changepwd" class="am-form tpl-form-line-form  layui-form">
                        {:token()}
                        <div class="am-form-group">
                            <label class="am-u-sm-3 am-form-label">原登录密码：</label>
                            <div class="am-u-sm-9">
                                <input type="password" name="oldpassword" placeholder="6-12位数字、字母或符号" style="width: 25%;">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label class="am-u-sm-3 am-form-label">新登录密码：</label>
                            <div class="am-u-sm-9">
                                <input type="password" name="newpassword" placeholder="6-12位数字、字母或符号" style="width: 25%;">
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label class="am-u-sm-3 am-form-label">再次输入新登录密码：</label>
                            <div class="am-u-sm-9">
                                <input type="password" name="renewpassword" placeholder="6-12位数字、字母或符号" style="width: 25%;">
                            </div>
                        </div>
                         <div class="am-form-group">
                            <label class="am-u-sm-3 am-form-label">输入验证码：</label>
                            <div class="am-u-sm-9">
                                <input type="text"style="width: 30%;" id="captcha" name="captcha"  placeholder="请输入验证码">
                            </div>
                            <span class="button">
                                <input class="am-btn am-btn-warning" type="button" name="btn" id="changeStyle" value="获取验证码"  onclick="settime(this);" style=" margin:20px 0 0 27%; background: #eaa410;cursor: pointer"/>
                            </span>
                        </div>
                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success" id="change">修改</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">  

//倒计时  
var countdown=60;  
function settime(val) {  
if (countdown == 0) {  
val.removeAttribute("disabled");  
val.value="获取验证码";  
countdown = 60;  
return false;  
} else {  
val.setAttribute("disabled", true);  
val.value="重新发送(" + countdown + ")";  
countdown--;  
}  
setTimeout(function() {  
settime(val);  
},1000);  
};

</script> 